#!/bin/bash 


killall cms_task
killall cms_db
killall cms_core

rm -rf /tmp/config*

ps -aux | grep cms

SHMID=$(ipcs -m | grep yulei | awk '{print $2}')

for i in $SHMID; do
    echo "remove share memory $i"
    ipcrm -m $i
done

SHMID=$(ipcs -m | grep 3145728 | awk '{print $2}')

for i in $SHMID; do
    echo "remove share memory $i"
    ipcrm -m $i
done
ipcs -m

